package com.sskj.trafficcontrol.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TcUserCarDao {

    /**
     * 查找用户车牌号 根据OpenId
     * @param open_id
     * @return
     */
    String getCarNumber(@Param("open_id") String open_id);

    /**
     * 更新车辆号码牌子
     * @param open_id
     * @param carNumber
     * @return
     */
    int editCarNumber(@Param("open_id") String open_id,@Param("carNumber") String carNumber);

    /**
     * 绑定车牌号码
     * @param open_id
     * @param carNumber
     */
    int addCarNumber(@Param("open_id") String open_id, @Param("carNumber") String carNumber,@Param("userMobile") String userMobile);
}
